#ifndef __ROBOT_MODEL_H__
#define __ROBOT_MODEL_H__

#include <Ogre.h>
#include "PapaObject.h"
#include "utility.h"

class RobotModel: public PapaObject
{
public:
	RobotModel(Ogre::SceneManager * sm);
	~RobotModel(void);

	void Initialization();
	void AddTime(Ogre::Real deltaTime);
	void setTarget(Ogre::Vector3 t);
	void ChangeStatus();

	Ogre::AnimationState* as;
	Ogre::Real AnimSpeed;
	Ogre::Entity *mRobotEntity;
	
private:
	Ogre::SceneManager *mSceneMgr;
	enum Status{MOVING, SHOOTING, IDLE};
	Status RobotStatus;
	Ogre::Vector3 target;

	//Ogre::Animation* anim;
	//Ogre::NodeAnimationTrack* track;
	//Ogre::AnimationState* mPlaneAnimState;

	void updateRobot();
};

#endif
